﻿<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
	<CustomAction Id="test"
			      Location="CommandUI.Ribbon"
				  Sequence="50">
		<CommandUIExtension>
			<CommandUIDefinitions>
				<CommandUIDefinition Location="Ribbon.WebApp.Scaling._children">
					<MaxSize Id="Ribbon.WebApp.Scaling.MyGroup2.MaxSize" Sequence="100" GroupId="Ribbon.WebApp.MyGroup2" Size="LargeLarge" />					
				</CommandUIDefinition>
				<CommandUIDefinition Location="Ribbon.WebApp.Scaling._children">
					<MaxSize Id="Ribbon.WebApp.Contribute2.MaxSize" Sequence="100" GroupId="Ribbon.WebApp.Contribute2" Size="LargeLarge" />
				</CommandUIDefinition>
				<CommandUIDefinition Location="Ribbon.WebApp.Manage.Paths">
					<Button Id="Ribbon.WebApp.Manage.MyPaths" 
						TemplateAlias="o2" Sequence="30"
						LabelText="My custom command"/>
				</CommandUIDefinition>
				<CommandUIDefinition Location="Ribbon.WebApp.Contribute">
					<Group Id="Ribbon.WebApp.Contribute2"
						   Title="MyGroup"
						   Sequence="10"
						   Template="Ribbon.Templates.Flexible2">
						<Controls Id="Ribbon.WebApp.Contribute2.Controls">
							<Button Id="Ribbon.WebApp.MyGroup1221" LabelText="1" TemplateAlias="o1" />
						</Controls>
					</Group>
				</CommandUIDefinition>
				<CommandUIDefinition Location="Ribbon.WebApp.Scaling._children">
					<MaxSize Id="Ribbon.WebApp.Scaling.MyGroup3.MaxSize" Sequence="110" GroupId="Ribbon.WebApp.MyGroup3" Size="LargeLarge" />
				</CommandUIDefinition>
				<CommandUIDefinition Location="Ribbon.WebApp.Groups._children">
					<Group Id="Ribbon.WebApp.MyGroup2"
						   Title="My Group2"
						   Template="Ribbon.Templates.Flexible2"
						   Sequence="15">
						<Controls Id="Ribbon.WebApp.MyGroup2.Controls">
							<Button Id="Ribbon.WebApp.MyGroup2.Item1" LabelText="1" TemplateAlias="o1" />
							<Button Id="Ribbon.WebApp.MyGroup2.Item2" LabelText="2" TemplateAlias="o1" />
							<Button Id="Ribbon.WebApp.MyGroup2.Item3" LabelText="3" TemplateAlias="o1" />
						</Controls>
					</Group>
				</CommandUIDefinition>
				<CommandUIDefinition Location="Ribbon.WebApp.Groups._children">
					<Group Id="Ribbon.WebApp.MyGroup3" 
						   Title="My Group3"
						   Template="Ribbon.Templates.Flexible2"
						   Sequence="25">
						<Controls Id="Ribbon.WebApp.MyGroup3.Controls">
							<Button Id="Ribbon.WebApp.MyGroup3.Item1" LabelText="1" TemplateAlias="o1" />
							<Button Id="Ribbon.WebApp.MyGroup3.Item2" LabelText="2" TemplateAlias="o1" />
							<Button Id="Ribbon.WebApp.MyGroup3.Item3" LabelText="3" TemplateAlias="o1" />
						</Controls>
					</Group>
				</CommandUIDefinition>
			</CommandUIDefinitions>
		</CommandUIExtension>		
	</CustomAction>
</Elements>